import math

n = eval(input())
s = eval(input())
area = (n * pow(s,2)) / (4 * math.tan(math.pi / n))
print('The area of the polygon is ' + str(area))